<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redis;

class Register extends Controller
{
    //
    public function sendCode(Request $request)
    {
        $mobile = $request->input('mobile');
        if(sendMobileCode($mobile)){
            return response()->json(['code'=>800,'data'=>'success','msg'=>'发送成功']);
        }else{
            return response()->json(['code'=>805,'data'=>'','msg'=>'发送失败']);
        }
        return "111";
    }

}
